<!-- 用户编辑模态框 -->
<div class="modal-body">
    <form class="form-horizontal" method="post" name="form_submit" id="form_submit"
          action="${request.contextPath}/soa/baseinfo/employee/datas/save">
        <input type="hidden" id="id" name="id" value="${model.id!}">
        <div class="box-body">
            <div class="form-group">
                <label for="name" class="col-sm-3 control-label">姓名</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="name" name="name" placeholder="请输入"
                           value="${model.name!}">
                </div>
            </div>
            <div class="form-group">
                <label for="sex" class="col-sm-3 control-label">性别</label>
                <div class="col-sm-9" id = "sex">
                    <label> <input type="radio" name="sex"
                                   value="0"> 男
                    </label>
                    <label> <input type="radio" name="sex"
                                   value="1"> 女
                    </label>
                </div>
                <!--<div class="col-sm-9">
                    <input type="text" class="form-control" id="sex" name="sex" placeholder="请输入"
                           value="${model.sex!}">
                </div>-->
            </div>
            <div class="form-group">
                <label for="email" class="col-sm-3 control-label">邮箱</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="email" name="email" placeholder="请输入"
                           value="${model.email!}">
                </div>
            </div>
            <div class="form-group">
                <label for="orgId" class="col-sm-3 control-label">部门</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="orgId" name="orgId" placeholder="请输入"
                           value="${model.orgId!}">
                </div>
            </div>
            <div class="form-group">
                <label for="position" class="col-sm-3 control-label">职位</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="position" name="position" placeholder="请输入"
                           value="${model.position!}">
                </div>
            </div>
            <div class="form-group">
                <label for="joinTime" class="col-sm-3 control-label">入职时间</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="joinTime" name="joinTime" placeholder="请输入"
                           value="${model.joinTime!}">
                </div>
            </div>
            <div class="form-group">
                <label for="status" class="col-sm-3 control-label">当前状态</label>
                <div class="col-sm-9" id = "status">

                    <!--<input type="text" class="form-control" id="status" name="status" placeholder="请输入"
                           value="${model.status!}">-->
                    <label> <input type="radio" name="status"
                                   value="0"> 试用期
                    </label>
                    <label> <input type="radio" name="status"
                                   value="1"> 正式员工
                    </label>
                    <label> <input type="radio" name="status"
                                   value="2"> 离职员工
                    </label>
                </div>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript">
    //表单校验及提交事件
    $('#form_submit').bootstrapValidator({
        message: 'This value is not valid',
        feedbackIcons: {
            valid: 'glyphicon glyphicon-ok',
            invalid: 'glyphicon glyphicon-remove',
            validating: 'glyphicon glyphicon-refresh'
        },
        fields: {
            name: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }
            , email: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }
            , position: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }
            , joinTime: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }
        }
    });
</script>
